package com.cjj.particle;

import android.app.Activity;
import android.view.View;
import android.view.animation.AccelerateInterpolator;

import com.plattysoft.leonids.ParticleSystem;

/**
 * Created by Administrator on 2015/7/6.
 */
public class JJFrie extends ParticleSystem {

    public JJFrie(Activity a,  int drawableRedId) {
        super(a, 100, drawableRedId, 1000);
    }

    public JJFrie(Activity a, int maxParticles, int drawableRedId, long timeToLive) {
        super(a, maxParticles, drawableRedId, timeToLive);
    }

    public void getFrie(View view)
    {
        setScaleRange(0.7f, 1.3f);
        setSpeedRange(0.1f, 0.25f);
        setRotationSpeedRange(90, 180);
        setFadeOut(200, new AccelerateInterpolator());
        oneShot(view, 80);
    }
}
